package com.leisurexi.aop.features;

import com.leisurexi.aop.overview.EchoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author: leisurexi
 * @date: 2021-05-21 15:03
 */
public class AspectJSchemaBasedPointcutDemo {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/META-INF/spring-aop-context.xml");

        EchoService echoService = context.getBean("echoService", EchoService.class);
        System.out.println(echoService.echo("Hello, World!"));

        context.close();
    }

}
